package com.winter.main.controller.report;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;


/**
 * Desc: 贷后报表
 * Author: dushuang
 * Date: Create in 2018/5/14
 */
@Controller
@RequestMapping(value = "/loan/report")
public class ReportController {

    private Logger logger = LogManager.getLogger(this);

    @RequestMapping(value = "toReportPage")
    public String toReportPage(){
        return "report/report_index";
    }

    /***
     * 案件入催统计
     * @return
     */
    @RequestMapping(value = "toEnterReportPage")
    public String toEnterReportPage(HttpServletRequest request, ModelMap map){
        String productType = request.getParameter("enterLoan_produceType");
        String date = request.getParameter("enterLoan_date");

        map.put("productType", "aaa");
        map.put("date", date);
        return "report/report_entryReport";
    }

    @RequestMapping(value = "toReportPage2")
    public String toReportPage2(){
        return "report/report_report2";
    }


}

